<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use frontend\assets\AppAsset;
use yii\helpers\Url;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" >
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <meta name="keywords" content="" />
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Favicon -->
    <link rel="shortcut icon" href="/img2/favicon/favicon.ico" type="image/x-icon" />
    <link rel="apple-touch-icon" href="/img2/favicon/apple-icon.png">

    <!-- Mobile Metas -->
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <!-- Web Fonts  -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800%7CShadows+Into+Light" rel="stylesheet" type="text/css">

    <!-- Vendor CSS -->
    <link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/vendor/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/vendor/animate/animate.min.css">
    <link rel="stylesheet" href="/vendor/simple-line-icons/css/simple-line-icons.min.css">
    <link rel="stylesheet" href="/vendor/owl.carousel/assets/owl.carousel.min.css">
    <link rel="stylesheet" href="/vendor/owl.carousel/assets/owl.theme.default.min.css">
    <link rel="stylesheet" href="/vendor/magnific-popup/magnific-popup.min.css">

    <!-- Theme CSS -->
    <link rel="stylesheet" href="/css/theme.css">
    <link rel="stylesheet" href="/css/theme-elements.css">
    <link rel="stylesheet" href="/css/theme-blog.css">
    <link rel="stylesheet" href="/css/theme-shop.css">

    <!-- Current Page CSS -->
    <link rel="stylesheet" href="/vendor/rs-plugin/css/settings.css">
    <link rel="stylesheet" href="/vendor/rs-plugin/css/layers.css">
    <link rel="stylesheet" href="/vendor/rs-plugin/css/navigation.css">

    <!-- Skin CSS -->
    <link rel="stylesheet" href="/css/skin-event2.css">

    <!-- Demo CSS -->
    <link rel="stylesheet" href="/css/demos/demo-event2.css">

    <!-- Theme Custom CSS -->
    <link rel="stylesheet" href="/css/custom3.css">

    <!-- slides CSS-->
    <link rel="stylesheet" href="/css/slides1.css">
    <link rel="stylesheet" href="/css/slides2.css">
<!--    <style></style>-->
    <!-- Head Libs -->
    <script src="/vendor/modernizr/modernizr.min.js"></script>

    <!-- slides js -->
<!--    <script src="/js/jquery-1.9.1.min.js"></script>-->
<!--    <script src="/js/jquery.slides.min.js"></script>-->

    <?php $this->head() ?>
</head>

<body>
<?php $this->beginBody() ?>

<header id="header" class="header-narrow " >
    <div class="header-body">
        <div class="header-container container">
            <div class="header-row">

                <div class="header-column hidden-xs hidden-sm">
                    <div class="header-logo">
                        <a href="<?php echo Url::home(); ?>">
                            <img alt="logo" height=80 src="/img2/logo.png">
                        </a>
                    </div>
                </div>

                <div class="header-column">
                    <div class="header-row">
                        <div class="header-nav">
                            <button class="btn header-btn-collapse-nav" data-toggle="collapse" data-target=".header-nav-main">
                                <i class="fa fa-bars"></i>
                            </button>
                            <div class="pull-right">
                                <?php echo Yii::$app->controller->action->id==='registration' ? '' : Html::a('参赛报名', ['site/registration'], ['class'=>'btn btn-primary custom-border-radius custom-btn-style-1 font-size-xl font-weight-bold text-color-light text-uppercase outline-none mt-sm']); ?>
                                <?php echo Yii::$app->controller->action->id==='practice-base' ? '' : Html::a('成为实践基地', ['site/practice-base'], ['class'=>'btn btn-primary custom-border-radius custom-btn-style-1 font-size-xl font-weight-bold text-color-light text-uppercase outline-none mt-sm']); ?>
                            </div>
                            <div class="header-nav-main header-nav-main-effect-1 header-nav-main-sub-effect-1 collapse">
                                <nav>
                                    <ul class="nav nav-pills custom-nav-pills" id="mainNav">
                                        <li class="<?php echo Yii::$app->controller->action->id==='index'?'active':'inactive'; ?>">
                                            <?php echo Html::a('首页', ['site/index'], ['class'=>'font-weight-semibold text-color-light']); ?>
                                        </li>
                                        <?php //if(Yii::$app->controller->action->id!=='index'): ?>
                                            <li class="<?php echo Yii::$app->controller->action->id==='mission'?'active':'inactive'; ?>">
                                                <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="200" href="<?php echo Yii::$app->controller->action->id==='index'?'#mission': Url::to(['site/mission']); ?>">大赛宗旨</a>
                                            </li>
                                        <?php //endif; ?>

                                        <li class="<?php echo Yii::$app->controller->action->id==='instruction'?'active':'inactive'; ?>">
                                            <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="180" href="<?php echo Yii::$app->controller->action->id==='index'?'#instruction': Url::to(['site/instruction']); ?>">参赛指南</a>
                                        </li>
                                        <!--<li class="<?php /*echo Yii::$app->controller->action->id==='schedule'?'active':'inactive'; */?>">
                                            <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="80" href="<?php /*echo Yii::$app->controller->action->id==='index'?'#schedule': Url::to(['site/schedule']); */?>">大赛日程</a>
                                        </li>-->
                                        <li class="<?php echo Yii::$app->controller->action->id==='creative'?'active':'inactive'; ?>">
                                            <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="80" href="<?php echo Url::to(['site/creative']); ?>">创意园地</a>
                                        </li>
                                        <li class="<?php echo Yii::$app->controller->action->id==='judge'?'active':'inactive'; ?>">
                                            <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="80" href="<?php echo Yii::$app->controller->action->id==='index'?'#judge': Url::to(['site/judge']); ?>">评审专家</a>
                                        </li>
                                        <li class="<?php echo Yii::$app->controller->action->id==='practice-base'?'active':'inactive'; ?>">
                                            <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="80" href="<?php echo Url::to(['site/practice-base']); ?>">实践基地</a>
                                        </li>
                                        <li class="<?php echo Yii::$app->controller->action->id==='partner'?'active':'inactive'; ?>">
                                            <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="80" href="<?php echo Yii::$app->controller->action->id==='index'?'#sponsors': Url::to(['site/partner']); ?>">支持单位</a>
                                        </li>
                                        <li class="<?php echo Yii::$app->controller->action->id==='news'?'active':'inactive'; ?>">
                                            <a class="font-weight-semibold text-color-light" data-hash data-hash-offset="80" href="<?php echo Url::to(['site/news']); ?>">新闻</a>
                                        </li>
                                    </ul>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>

<div role="main" class="main">
    <?php echo $content; ?>
</div>

<footer id="footer" class="background-color-dark m-none pb-md">
    <div class="container pt-md pb-md">
        <div class="row mb-md pb-md">
            <div class="col-md-5">
                <div class="mb-xlg pb-xlg">
                    <h4 class="text-color-light font-weight-light mb-sm">全国乐龄游戏创意设计大赛</h4>
                    <p class="custom-font-size-3 mb-none">National Creative Design Competition for Elderly-oriented Game</p>
                </div>
                <a href="<?php echo Url::to(['site/registration']); ?>" class="btn btn-primary custom-border-radius custom-btn-style-1 font-size-xl font-weight-semibold text-color-light text-uppercase outline-none">参赛报名 <i class="fa fa-arrow-right"></i></a>
                <a href="<?php echo Url::to(['site/practice-base']); ?>" class="btn btn-primary custom-border-radius custom-btn-style-1 font-size-xl font-weight-semibold text-color-light text-uppercase outline-none ml-md">成为支持单位 <i class="fa fa-arrow-right"></i></a>
            </div>
            <div class="col-md-3">
                <div class="contact-details">
                    <h4 class="text-color-light font-weight-light mb-lg pb-xs">联系方式</h4>
                    <div class="mb-md">
                        <strong class="font-weight-light text-color-light">QQ:</strong>
                        <a href="tel:1234567890" class="text-decoration-none font-weight-light">470006710</a>
                    </div>
                    <div>
                        <strong class="font-weight-light text-color-light">Email:</strong>
                        <a href="mailto:mail@example.com" class="text-decoration-none font-weight-light">laoaiwan@126.com</a>
                    </div>
                </div>
            </div>
            <div class="col-md-3 col-md-offset-1">
                <h4 class="text-color-light font-weight-light mb-lg pb-xs">关注我们</h4>
                <ul class="social-icons">
                    <li>
                        <a href="#" target="_blank" title="微博">
                            <i class="fa fa-weibo"></i>
                        </a>
                    </li>
                    <li>
                        <a href="#" target="_blank" title="微信">
                            <i class="fa fa-wechat"></i>
                        </a>
                    </li>
                    <li>
                        <a href="#" target="_blank" title="QQ">
                            <i class="fa fa-qq"></i>
                        </a>
                    </li>
                </ul>

                <div class="mt-xlg">
                    <ul class="list-inline list-unstyled">
                        <li><?php echo Html::a('参赛须知', ['site/agreement']); ?></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="footer-border center pt-xlg">
                    <p class="font-weight-normal mb-none">全国乐龄游戏创意设计大赛组委会 © Copyright <?php echo date('Y'); ?></p>
                </div>
            </div>
        </div>
    </div>
</footer>

<!-- Vendor -->
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/jquery.appear/jquery.appear.min.js"></script>
<script src="/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="/vendor/jquery-cookie/jquery-cookie.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/vendor/common/common.min.js"></script>
<script src="/vendor/jquery.validation/jquery.validation.min.js"></script>
<script src="/vendor/jquery.easy-pie-chart/jquery.easy-pie-chart.min.js"></script>
<?php //<script src="vendor/jquery.gmap/jquery.gmap.min.js"></script> ?>
<!--<script src="vendor/jquery.lazyload/jquery.lazyload.min.js"></script>-->
<script src="/vendor/isotope/jquery.isotope.min.js"></script>
<script src="/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="/vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="/vendor/vide/vide.min.js"></script>
<script src="/vendor/image-map-resizer-master/js/imageMapResizer.min.js"></script>


<!-- Theme Base, Components and Settings -->
<script src="/js/theme.js"></script>

<!-- Current Page Vendor and Views -->
<script src="/vendor/rs-plugin/js/jquery.themepunch.tools.min.js"></script>
<script src="/vendor/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>


<!-- Current Page Vendor and Views -->
<script src="/js/views/view.contact.js"></script>

<!-- Demo -->
<script src="/js/demos/demo-event.js"></script>

<!-- Theme Custom -->
<script src="/js/custom.js"></script>

<!-- Theme Initialization Files -->
<script src="/js/theme.init.js"></script>

<?php $this->endBody() ?>

<!-- slides js -->
<script src="/js/jquery-1.9.1.min.js"></script>
<script src="/js/jquery.slides.min.js"></script>

</body>
</html>
<?php $this->endPage() ?>

